package com.kevin.common.event.listener;

import com.kevin.common.event.UserRegisterEvent;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

/**
 * @author kevin
 * @version 1.0
 * @project life-tool
 * @description 用户监听器
 * @date 2024/12/23 22:33:27
 */
@Component
public class UserRegisterListener {

    @EventListener(UserRegisterEvent.class)
    public void onEvent(UserRegisterEvent event) {
        System.out.println("已监听");
    }
}
